
public class TelevisionDemo {

	public static void main(String[] args) {
		
		Television tv1 = new Television();
		tv1.make = "samsumg";
		tv1.model = "smart tv";
		tv1.size = 46;
		
		tv1.isOn = true;
		tv1.switchon();
		
		tv1.displayinfo();
		int channelNo = tv1.changeChannel(2);
        System.out.println("Channel number = " + channelNo);
		
		tv1.displayChannelName();
		
		tv1.blockchannel(3);
	}
	
}
		
